package com.mercury.pattern._11_proxy._001_static_proxy;

public class ProxyTeacher implements ITeacherDao {

    ITeacherDao teacher ;

    public ProxyTeacher(ITeacherDao teacher) {
        this.teacher = teacher;
    }

    @Override
    public void teach() {
        System.out.println("我是代课老师，先代下课~~");
        teacher.teach();
    }
}
